﻿using System.Collections.Generic;
using System.Web.Http;
using SimpleMailbox.Model;

namespace SimpleMailbox.WebAPI
{
	public class FolderController : ApiController
	{
		// GET api/user
		public IEnumerable<Folder> Get()
		{
			return new List<Folder>()
			{
				new Folder(){ FolderId = 1, Name = "Inbox", NumberOfUnreadedEmails = 1 },
				new Folder(){ FolderId = 2, ParentFolderId = 1, Name = "Inbox from master", NumberOfUnreadedEmails = 2 },
				new Folder(){ FolderId = 3, Name = "Send", NumberOfUnreadedEmails = 1 },
				new Folder(){ FolderId = 4, Name = "Spam", NumberOfUnreadedEmails = 1 },
			};
		}

		// GET api/user/5
		public Folder Get(int id)
		{
			return null;
		}

		// POST api/user
		public void Post([FromBody]string value)
		{
		}

		// PUT api/user/5
		public void Put(int id, [FromBody]string value)
		{
		}

		// DELETE api/user/5
		public void Delete(int id)
		{
		}
	}
}